<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: contextFree.scanner.LALR1 Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcontext_free_1_1scanner_1_1_l_a_l_r1.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pac-static-attribs">Static Package Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">contextFree.scanner.LALR1 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for contextFree.scanner.LALR1:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1__inherit__graph.png" border="0" usemap="#context_free_8scanner_8_l_a_l_r1_inherit__map" alt="Inheritance graph"/></div>
<map name="context_free_8scanner_8_l_a_l_r1_inherit__map" id="context_free_8scanner_8_l_a_l_r1_inherit__map">
<area shape="rect" id="node2" href="classcontext_free_1_1scanner_1_1_l_r0.html" title="{contextFree.scanner.LR0\n|# grammatica\l|+ setGrammar()\l+ init()\l+ chiusura()\l+ GoTo()\l+ Item()\l+ uguale()\l+ prodPresente()\l}" alt="" coords="27,189,195,355"/><area shape="rect" id="node4" href="interfacecontext_free_1_1scanner_1_1_i_scanner.html" title="{contextFree.scanner.IScanner\n||+ setGrammar()\l+ init()\l+ getGrammar()\l+ isAmbiguos()\l+ getAutoma()\l}" alt="" coords="13,5,208,141"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for contextFree.scanner.LALR1:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1__coll__graph.png" border="0" usemap="#context_free_8scanner_8_l_a_l_r1_coll__map" alt="Collaboration graph"/></div>
<map name="context_free_8scanner_8_l_a_l_r1_coll__map" id="context_free_8scanner_8_l_a_l_r1_coll__map">
<area shape="rect" id="node2" href="classcontext_free_1_1scanner_1_1_l_r0.html" title="{contextFree.scanner.LR0\n||+ setGrammar()\l+ init()\l+ chiusura()\l+ GoTo()\l+ Item()\l+ uguale()\l+ prodPresente()\l}" alt="" coords="231,465,399,631"/><area shape="rect" id="node4" href="interfacecontext_free_1_1scanner_1_1_i_scanner.html" title="{contextFree.scanner.IScanner\n||+ setGrammar()\l+ init()\l+ getGrammar()\l+ isAmbiguos()\l+ getAutoma()\l}" alt="" coords="5,199,200,335"/><area shape="rect" id="node6" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html" title="Grammar Interface." alt="" coords="225,147,431,386"/><area shape="rect" id="node8" href="classcontext_free_1_1scanner_1_1_automa.html" title="{contextFree.scanner.Automa\n||+ Automa()\l+ Automa()\l+ getStates()\l+ setStates()\l+ newItemsFromKernels()\l+ getState()\l+ toString()\l+ removeDollarLookahed()\l+ size()\l}" alt="" coords="423,451,613,645"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classcontext_free_1_1scanner_1_1_l_a_l_r1-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afcaf919b13839287bfcd4c07d304af44"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afcaf919b13839287bfcd4c07d304af44"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>LALR1</b> (<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> gram)</td></tr>
<tr class="memitem:ab74da1918c78f64f121dbbd4a4279250"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab74da1918c78f64f121dbbd4a4279250"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>getActionTable</b> ()</td></tr>
<tr class="memitem:ae8b5062ce6f6313e1d1baf9899a3a3d2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8b5062ce6f6313e1d1baf9899a3a3d2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setActionTable</b> (String[][] actionTable)</td></tr>
<tr class="memitem:ae491018691436875bc25b87126fb83c9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae491018691436875bc25b87126fb83c9"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>getGotoTable</b> ()</td></tr>
<tr class="memitem:a282138d6706fc4835fe914c12e1bcd58"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a282138d6706fc4835fe914c12e1bcd58"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGotoTable</b> (String[][] gotoTable)</td></tr>
<tr class="memitem:a19d4f6725ddaba47bec24a906a32bc30"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19d4f6725ddaba47bec24a906a32bc30"></a>
<a class="el" href="classcontext_free_1_1scanner_1_1_automa.html">Automa</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getAutoma</b> ()</td></tr>
<tr class="memitem:a2b83305a759d41eca9f52965dd88be51"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2b83305a759d41eca9f52965dd88be51"></a>
<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getGrammar</b> ()</td></tr>
<tr class="memitem:a7db67e7e6a0c58be0de391f71165fc7c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7db67e7e6a0c58be0de391f71165fc7c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGrammar</b> (<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> gram)</td></tr>
<tr class="memitem:a84de2247841f98c9d1339acac165d141"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141">init</a> ()  throws Exception</td></tr>
<tr class="memdesc:a84de2247841f98c9d1339acac165d141"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the LALR(1) automaton from <a class="el" href="classcontext_free_1_1scanner_1_1_l_r0.html">LR0</a> automaton.  <a href="#a84de2247841f98c9d1339acac165d141"></a><br/></td></tr>
<tr class="memitem:a879873c5f879881494d342782387d661"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a879873c5f879881494d342782387d661">chiusuraLR1</a> (List&lt; <a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a> &gt; i)</td></tr>
<tr class="memdesc:a879873c5f879881494d342782387d661"><td class="mdescLeft">&#160;</td><td class="mdescRight">Passed a list of production I that form the kernel of a state, return closing it, and the lookahead symbols associated.  <a href="#a879873c5f879881494d342782387d661"></a><br/></td></tr>
<tr class="memitem:a92b63b5d61bbdd523a16aa5e577c2ba6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a92b63b5d61bbdd523a16aa5e577c2ba6">tableCostruction</a> ()  throws Exception</td></tr>
<tr class="memdesc:a92b63b5d61bbdd523a16aa5e577c2ba6"><td class="mdescLeft">&#160;</td><td class="mdescRight">builds the Action table GoTo from an automa <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html">LALR1</a> and tells us if it is or not type of <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html">LALR1</a>  <a href="#a92b63b5d61bbdd523a16aa5e577c2ba6"></a><br/></td></tr>
<tr class="memitem:a909aea9ab05f3633c169e4dd20447e62"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a909aea9ab05f3633c169e4dd20447e62">reduce</a> (<a class="el" href="classcontext_free_1_1scanner_1_1_state.html">State</a> stato)</td></tr>
<tr class="memdesc:a909aea9ab05f3633c169e4dd20447e62"><td class="mdescLeft">&#160;</td><td class="mdescRight">if the point is in the last position he wrote the reduces in the action table.  <a href="#a909aea9ab05f3633c169e4dd20447e62"></a><br/></td></tr>
<tr class="memitem:aee49a037861ca73f5380efb261517825"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#aee49a037861ca73f5380efb261517825">actionWrite</a> (int i, int j, int x, String action)</td></tr>
<tr class="memdesc:aee49a037861ca73f5380efb261517825"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the action Reduce or Scift in the Action table.  <a href="#aee49a037861ca73f5380efb261517825"></a><br/></td></tr>
<tr class="memitem:a53759d4a64bdb55fe8c039db8eb891f3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53759d4a64bdb55fe8c039db8eb891f3"></a>
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>isAmbiguos</b> ()</td></tr>
<tr class="memitem:a452dc07f015344b3681d8e1a161d51dd"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a452dc07f015344b3681d8e1a161d51dd">printTable</a> ()</td></tr>
<tr class="memdesc:a452dc07f015344b3681d8e1a161d51dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string with tables Goto Action.  <a href="#a452dc07f015344b3681d8e1a161d51dd"></a><br/></td></tr>
<tr class="memitem:abe84feb77fd24be7e65dbfd7e1103112"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe84feb77fd24be7e65dbfd7e1103112"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>toString</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pac-static-attribs"></a>
Static Package Attributes</h2></td></tr>
<tr class="memitem:a4eecab5f1245d08a45d71ba27f91350d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4eecab5f1245d08a45d71ba27f91350d"></a>
static Logger&#160;</td><td class="memItemRight" valign="bottom"><b>logger</b> = Logger.getLogger(LALR1.class.getName())</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:ab1c19e75693982310b7494bd3b8623c9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#ab1c19e75693982310b7494bd3b8623c9">calculateSymbol</a> (<a class="el" href="classcontext_free_1_1scanner_1_1_automa.html">Automa</a> atm)  throws Exception</td></tr>
<tr class="memdesc:ab1c19e75693982310b7494bd3b8623c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation and propagation of symbol.  <a href="#ab1c19e75693982310b7494bd3b8623c9"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a42dc2f89ec2c642200c0d9bf78d5ce25"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a42dc2f89ec2c642200c0d9bf78d5ce25"></a>
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>isAmbiguous</b> = false</td></tr>
<tr class="memitem:a95bbe0235c59768f32b942ba476df180"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95bbe0235c59768f32b942ba476df180"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>ambiguo</b> = &quot;&quot;</td></tr>
<tr class="memitem:a9abae9a81b359b59dcbcfdecbf809068"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9abae9a81b359b59dcbcfdecbf809068"></a>
<a class="el" href="classcontext_free_1_1scanner_1_1_automa.html">Automa</a>&#160;</td><td class="memItemRight" valign="bottom"><b>automa</b></td></tr>
<tr class="memitem:af6f7fe36eb851deda2a609a22c300b7c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af6f7fe36eb851deda2a609a22c300b7c"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>actionTable</b></td></tr>
<tr class="memitem:a95bedde44fe8cd140e6ca0739928e0f7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95bedde44fe8cd140e6ca0739928e0f7"></a>
String[][]&#160;</td><td class="memItemRight" valign="bottom"><b>gotoTable</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00014">14</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aee49a037861ca73f5380efb261517825"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#aee49a037861ca73f5380efb261517825">contextFree.scanner.LALR1.actionWrite</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>action</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Writes the action Reduce or Scift in the Action table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">current</td><td>state </td></tr>
    <tr><td class="paramname">-1</td><td>If it reduces, else the destination state of the shift </td></tr>
    <tr><td class="paramname">symbol</td><td>for which you go write in the Action table </td></tr>
    <tr><td class="paramname">action</td><td>"s" if it is shift, else the production for which reduce </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>false case of ambiguity </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00372">372</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_aee49a037861ca73f5380efb261517825_icgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_aee49a037861ca73f5380efb261517825_icgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_aee49a037861ca73f5380efb261517825_icgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_aee49a037861ca73f5380efb261517825_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a92b63b5d61bbdd523a16aa5e577c2ba6" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="584,5,867,32"/><area shape="rect" id="node7" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a909aea9ab05f3633c169e4dd20447e62" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="309,31,536,57"/><area shape="rect" id="node5" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="915,5,1120,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab1c19e75693982310b7494bd3b8623c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#ab1c19e75693982310b7494bd3b8623c9">contextFree.scanner.LALR1.calculateSymbol</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1scanner_1_1_automa.html">Automa</a>&#160;</td>
          <td class="paramname"><em>atm</em></td><td>)</td>
          <td>  throws Exception<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation and propagation of symbol. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">atm</td><td>the automaton </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>0 if no symbol have created, 1 otherwise. -1 if error. </dd></dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author:</dt><dd>Paolo Pino </dd></dl>
<p>Trasformo la singola produzione k in una list per poterla passare a chiusura <a class="el" href="classcontext_free_1_1scanner_1_1_l_r1.html">LR1</a> </p>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00122">122</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_cgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_cgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_cgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a879873c5f879881494d342782387d661" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="339,124,599,151"/><area shape="rect" id="node5" href="classcontext_free_1_1scanner_1_1_l_r0.html#ace66d28273502a9daf8e4550f48b5782" title="checks if a state is present in an automaton" alt="" coords="1035,124,1245,151"/><area shape="rect" id="node7" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="698,48,937,75"/><area shape="rect" id="node9" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="699,99,935,126"/><area shape="rect" id="node11" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a256e9280e008a7c709ccb80725ccc0f2" title="Get the list of first for the grammar." alt="" coords="690,150,945,176"/><area shape="rect" id="node13" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a45b191078f89a67427a2593b67ae4f1e" title="contextFree.scanner.IndexedProduction.getLookahead" alt="" coords="649,200,986,227"/><area shape="rect" id="node15" href="classcontext_free_1_1scanner_1_1_l_r0.html#a43275125600a950a4a1f78ce565eac5f" title="checks if a production is already in a list of productions." alt="" coords="693,251,942,278"/></map>
</div>
</p>

<p><div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_icgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_icgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_icgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_ab1c19e75693982310b7494bd3b8623c9_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="339,5,544,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a879873c5f879881494d342782387d661"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a>&gt; <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a879873c5f879881494d342782387d661">contextFree.scanner.LALR1.chiusuraLR1</a> </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a> &gt;&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Passed a list of production I that form the kernel of a state, return closing it, and the lookahead symbols associated. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">the</td><td>kernels of the state </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>list of products forming the state </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00171">171</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_cgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_cgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_cgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_r0.html#ace66d28273502a9daf8e4550f48b5782" title="checks if a state is present in an automaton" alt="" coords="701,124,912,151"/><area shape="rect" id="node5" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="365,48,603,75"/><area shape="rect" id="node7" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="366,99,602,126"/><area shape="rect" id="node9" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a256e9280e008a7c709ccb80725ccc0f2" title="Get the list of first for the grammar." alt="" coords="357,150,611,176"/><area shape="rect" id="node11" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a45b191078f89a67427a2593b67ae4f1e" title="contextFree.scanner.IndexedProduction.getLookahead" alt="" coords="315,200,653,227"/><area shape="rect" id="node13" href="classcontext_free_1_1scanner_1_1_l_r0.html#a43275125600a950a4a1f78ce565eac5f" title="checks if a production is already in a list of productions." alt="" coords="359,251,609,278"/></map>
</div>
</p>

<p><div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_icgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_icgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_icgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a879873c5f879881494d342782387d661_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="648,5,853,32"/><area shape="rect" id="node5" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#ab1c19e75693982310b7494bd3b8623c9" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="315,31,599,57"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a84de2247841f98c9d1339acac165d141"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141">contextFree.scanner.LALR1.init</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws Exception<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize the LALR(1) automaton from <a class="el" href="classcontext_free_1_1scanner_1_1_l_r0.html">LR0</a> automaton. </p>
<p>If the grammar is LALR(1) then initialize action and goto table. </p>
<dl class="section return"><dt>Returns:</dt><dd>0 if the grammar is ambiguous, 1 otherwise. -1 if error </dd></dl>

<p>Implements <a class="el" href="classcontext_free_1_1scanner_1_1_l_r0.html">contextFree.scanner.LR0</a>.</p>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00076">76</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a84de2247841f98c9d1339acac165d141_cgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a84de2247841f98c9d1339acac165d141_cgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a84de2247841f98c9d1339acac165d141_cgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a84de2247841f98c9d1339acac165d141_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_r0.html#a5c7d77fe2a994398ef6312251e2f6109" title="given a grammar G we calculate the associated grammar augmented by adding the production S &#39;:: =..." alt="" coords="323,157,520,184"/><area shape="rect" id="node24" href="classcontext_free_1_1scanner_1_1_automa.html#a7cb3536eab5b56faee50dafd8de978ad" title="Get kernels element for each states into automa." alt="" coords="260,411,583,437"/><area shape="rect" id="node26" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#ab1c19e75693982310b7494bd3b8623c9" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="279,309,563,336"/><area shape="rect" id="node28" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a879873c5f879881494d342782387d661" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="633,259,893,285"/><area shape="rect" id="node38" href="classcontext_free_1_1scanner_1_1_automa.html#aae82c530ffa9a9ea010de9eb9f77707d" title="remove dollar simbol lookahed" alt="" coords="259,461,583,488"/><area shape="rect" id="node41" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a92b63b5d61bbdd523a16aa5e577c2ba6" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="280,360,563,387"/><area shape="rect" id="node5" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#aceb36e584d26bd39a0f5186742cc9b5b" title="Get the axioms." alt="" coords="643,5,882,32"/><area shape="rect" id="node7" href="classcontext_free_1_1scanner_1_1_l_r0.html#a313dfc00f370a910932b02034e26fb8c" title="*I passed a list of production that form the kernel of a state, return closing it" alt="" coords="959,107,1180,133"/><area shape="rect" id="node9" href="classcontext_free_1_1scanner_1_1_l_r0.html#ace66d28273502a9daf8e4550f48b5782" title="checks if a state is present in an automaton" alt="" coords="1632,132,1843,159"/><area shape="rect" id="node16" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a4b1bc2134e63051dc37e693294aaeec6" title="Get non&#45;terminal symbols list." alt="" coords="643,360,882,387"/><area shape="rect" id="node18" href="classcontext_free_1_1scanner_1_1_l_r0.html#a087486ba03c2fb5ab400e425e7b54bbc" title="Passed a state and the symbol that follows the point, returns the kernel of the new state with the re..." alt="" coords="661,157,864,184"/><area shape="rect" id="node22" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="951,411,1187,437"/><area shape="rect" id="node11" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a629ab4dc36a869b93fa239a3fee760f9" title="Get production list." alt="" coords="1295,208,1534,235"/><area shape="rect" id="node13" href="classcontext_free_1_1scanner_1_1_l_r0.html#a43275125600a950a4a1f78ce565eac5f" title="checks if a production is already in a list of productions." alt="" coords="1290,157,1539,184"/><area shape="rect" id="node33" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a256e9280e008a7c709ccb80725ccc0f2" title="Get the list of first for the grammar." alt="" coords="942,360,1197,387"/><area shape="rect" id="node35" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a45b191078f89a67427a2593b67ae4f1e" title="contextFree.scanner.IndexedProduction.getLookahead" alt="" coords="1246,385,1583,412"/><area shape="rect" id="node45" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a909aea9ab05f3633c169e4dd20447e62" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="649,461,876,488"/><area shape="rect" id="node50" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#aee49a037861ca73f5380efb261517825" title="Writes the action Reduce or Scift in the Action table." alt="" coords="942,512,1197,539"/><area shape="rect" id="node47" href="classcontext_free_1_1scanner_1_1_state.html#a987d4c7ae8eb2754f13f0099f5d861a5" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="948,461,1191,488"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a452dc07f015344b3681d8e1a161d51dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a452dc07f015344b3681d8e1a161d51dd">contextFree.scanner.LALR1.printTable</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a string with tables Goto Action. </p>
<dl class="section return"><dt>Returns:</dt><dd></dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00404">404</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a452dc07f015344b3681d8e1a161d51dd_cgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a452dc07f015344b3681d8e1a161d51dd_cgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a452dc07f015344b3681d8e1a161d51dd_cgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a452dc07f015344b3681d8e1a161d51dd_cgraph">
<area shape="rect" id="node3" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="301,5,537,32"/><area shape="rect" id="node5" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a4b1bc2134e63051dc37e693294aaeec6" title="Get non&#45;terminal symbols list." alt="" coords="299,56,538,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a909aea9ab05f3633c169e4dd20447e62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a909aea9ab05f3633c169e4dd20447e62">contextFree.scanner.LALR1.reduce</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1scanner_1_1_state.html">State</a>&#160;</td>
          <td class="paramname"><em>stato</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>if the point is in the last position he wrote the reduces in the action table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>to control </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>false if there are conflicts </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00334">334</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_cgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_cgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_cgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_state.html#a987d4c7ae8eb2754f13f0099f5d861a5" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="287,5,529,32"/><area shape="rect" id="node7" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#aee49a037861ca73f5380efb261517825" title="Writes the action Reduce or Scift in the Action table." alt="" coords="281,56,535,83"/><area shape="rect" id="node9" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="290,107,526,133"/><area shape="rect" id="node5" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a45b191078f89a67427a2593b67ae4f1e" title="contextFree.scanner.IndexedProduction.getLookahead" alt="" coords="585,5,922,32"/></map>
</div>
</p>

<p><div id="dynsection-10" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-10-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-10-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-10-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_icgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_icgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_icgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a909aea9ab05f3633c169e4dd20447e62_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a92b63b5d61bbdd523a16aa5e577c2ba6" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="280,5,563,32"/><area shape="rect" id="node5" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="611,5,816,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a92b63b5d61bbdd523a16aa5e577c2ba6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a92b63b5d61bbdd523a16aa5e577c2ba6">contextFree.scanner.LALR1.tableCostruction</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws Exception</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>builds the Action table GoTo from an automa <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html">LALR1</a> and tells us if it is or not type of <a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html">LALR1</a> </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">automa</td><td>to control </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>1 if the type of grammar is LALR (1), 0 otherwise </dd></dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_l_a_l_r1_8java_source.html#l00283">283</a> of file <a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a>.</p>

<p><div id="dynsection-11" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-11-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-11-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-11-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_cgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_cgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_cgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_cgraph">
<area shape="rect" id="node3" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a4b1bc2134e63051dc37e693294aaeec6" title="Get non&#45;terminal symbols list." alt="" coords="337,5,575,32"/><area shape="rect" id="node5" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html#a996f5e0bed5a6ac469b764f56d420fb1" title="Get terminal symbols list." alt="" coords="634,56,870,83"/><area shape="rect" id="node7" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a909aea9ab05f3633c169e4dd20447e62" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="343,107,569,133"/><area shape="rect" id="node13" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#aee49a037861ca73f5380efb261517825" title="Writes the action Reduce or Scift in the Action table." alt="" coords="625,157,879,184"/><area shape="rect" id="node9" href="classcontext_free_1_1scanner_1_1_state.html#a987d4c7ae8eb2754f13f0099f5d861a5" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="631,107,873,133"/><area shape="rect" id="node11" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a45b191078f89a67427a2593b67ae4f1e" title="contextFree.scanner.IndexedProduction.getLookahead" alt="" coords="929,107,1266,133"/></map>
</div>
</p>

<p><div id="dynsection-12" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-12-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-12-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-12-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_icgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_icgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_icgraph" id="classcontext_free_1_1scanner_1_1_l_a_l_r1_a92b63b5d61bbdd523a16aa5e577c2ba6_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="336,5,541,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/contextFree/scanner/<a class="el" href="_l_a_l_r1_8java_source.html">LALR1.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>contextFree</b>      </li>
      <li class="navelem"><a class="el" href="namespacecontext_free_1_1scanner.html">scanner</a>      </li>
      <li class="navelem"><a class="el" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html">LALR1</a>      </li>

    <li class="footer">Generated on Fri Mar 30 2012 21:26:27 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
